package com.hancai.barrage.pagehelper;

import lombok.Getter;
import lombok.Setter;

/**
 * @author 涵菜
 * @version 1.0
 * 客户关键字查询
 * tinyint-byte(0,1)-boolean(true,false)
 * =的优先级低于==
 */
@Getter
@Setter
public class ClientQuery extends QueryObject{
    private String status;
    private Boolean deleted;

    /**
     * 如果该客户没有被删除，deleted为空即false（说明没有被删除）
     * 该客户被删除了 属性deleted传过来，where标签中的deleted=#{deleted}就一定拿得到值
     * @param deleted
     */
    public void setDeleted(Boolean deleted){
        this.deleted= deleted==null?false:deleted;
    }
}
